#pragma once

#include <stdexcept>
namespace HadoopUtils {

	/**
	* A simple exception class that records a message for the user.
	*/
	class Error:public std::runtime_error {
	private:
		std::string error;
	public:

		/**
		* Create an error object with the given message.
		*/
		Error(const std::string& msg);

		/**
		* Construct an error object with the given message that was created on
		* the given file, line, and functino.
		*/
		Error(const std::string& msg, 
			const std::string& file, int line, const std::string& function);

		/**
		* Get the error message.
		*/
		const std::string& getMessage() const;
		~Error() throw (){}
	};

}
